﻿using System;
using Hongsh.Pay.Client.Proxy.Http;

namespace Hongsh.Pay.Client.Proxy.Handlers {
    // Token: 0x0200007F RID: 127
    public static class WechatPayProxy {
        // Token: 0x06000489 RID: 1161 RVA: 0x00004BC4 File Offset: 0x00002DC4
        public static void AddAWechatPayProxyHandler(this HttpServer svr) {
            svr.RouterList.Add("GET/pay/micropay", new HttpContextActionDelegate(WechatPay));
            svr.RouterList.Add("POST/pay/orderquery", new HttpContextActionDelegate(WechatPay));
        }

        // Token: 0x0600048A RID: 1162 RVA: 0x00002A56 File Offset: 0x00000C56
        private static void WechatPay(object ctx) {
        }

        // Token: 0x02000080 RID: 128
        public class WxPayDetail {
            // Token: 0x170001FF RID: 511
            // (get) Token: 0x0600048B RID: 1163 RVA: 0x00004BFE File Offset: 0x00002DFE
            // (set) Token: 0x0600048C RID: 1164 RVA: 0x00004C06 File Offset: 0x00002E06
            public WxPayGoods[] goods_detail { get; set; }

            // Token: 0x0600048D RID: 1165 RVA: 0x0000286D File Offset: 0x00000A6D
            public WxPayDetail() {
                //Class15.cwcZ3SWztHroi();
                //base..ctor();
            }

            // Token: 0x02000081 RID: 129
            public class WxPayGoods {
                // Token: 0x17000200 RID: 512
                // (get) Token: 0x0600048E RID: 1166 RVA: 0x00004C0F File Offset: 0x00002E0F
                // (set) Token: 0x0600048F RID: 1167 RVA: 0x00004C17 File Offset: 0x00002E17
                public string goods_id { get; set; }

                // Token: 0x17000201 RID: 513
                // (get) Token: 0x06000490 RID: 1168 RVA: 0x00004C20 File Offset: 0x00002E20
                // (set) Token: 0x06000491 RID: 1169 RVA: 0x00004C28 File Offset: 0x00002E28
                public string goods_name { get; set; }

                // Token: 0x17000202 RID: 514
                // (get) Token: 0x06000492 RID: 1170 RVA: 0x00004C31 File Offset: 0x00002E31
                // (set) Token: 0x06000493 RID: 1171 RVA: 0x00004C39 File Offset: 0x00002E39
                public double quantity { get; set; }

                // Token: 0x17000203 RID: 515
                // (get) Token: 0x06000494 RID: 1172 RVA: 0x00004C42 File Offset: 0x00002E42
                // (set) Token: 0x06000495 RID: 1173 RVA: 0x00004C4A File Offset: 0x00002E4A
                public decimal price { get; set; }

                // Token: 0x06000496 RID: 1174 RVA: 0x0000286D File Offset: 0x00000A6D
                public WxPayGoods() {
                    //Class15.cwcZ3SWztHroi();
                    //base..ctor();
                }
            }
        }

        // Token: 0x02000082 RID: 130
        public class WxPayReqeust {
            // Token: 0x17000204 RID: 516
            // (get) Token: 0x06000497 RID: 1175 RVA: 0x00004C53 File Offset: 0x00002E53
            // (set) Token: 0x06000498 RID: 1176 RVA: 0x00004C5B File Offset: 0x00002E5B
            public string transaction_id { get; set; }

            // Token: 0x17000205 RID: 517
            // (get) Token: 0x06000499 RID: 1177 RVA: 0x00004C64 File Offset: 0x00002E64
            // (set) Token: 0x0600049A RID: 1178 RVA: 0x00004C6C File Offset: 0x00002E6C
            public string out_trade_no { get; set; }

            // Token: 0x17000206 RID: 518
            // (get) Token: 0x0600049B RID: 1179 RVA: 0x00004C75 File Offset: 0x00002E75
            // (set) Token: 0x0600049C RID: 1180 RVA: 0x00004C7D File Offset: 0x00002E7D
            public string auth_code { get; set; }

            // Token: 0x17000207 RID: 519
            // (get) Token: 0x0600049D RID: 1181 RVA: 0x00004C86 File Offset: 0x00002E86
            // (set) Token: 0x0600049E RID: 1182 RVA: 0x00004C8E File Offset: 0x00002E8E
            public int total_fee { get; set; }

            // Token: 0x17000208 RID: 520
            // (get) Token: 0x0600049F RID: 1183 RVA: 0x00004C97 File Offset: 0x00002E97
            // (set) Token: 0x060004A0 RID: 1184 RVA: 0x00004C9F File Offset: 0x00002E9F
            public string body { get; set; }

            // Token: 0x17000209 RID: 521
            // (get) Token: 0x060004A1 RID: 1185 RVA: 0x00004CA8 File Offset: 0x00002EA8
            // (set) Token: 0x060004A2 RID: 1186 RVA: 0x00004CB0 File Offset: 0x00002EB0
            public string goods_tag { get; set; }

            // Token: 0x1700020A RID: 522
            // (get) Token: 0x060004A3 RID: 1187 RVA: 0x00004CB9 File Offset: 0x00002EB9
            // (set) Token: 0x060004A4 RID: 1188 RVA: 0x00004CC1 File Offset: 0x00002EC1
            public string detail { get; set; }

            // Token: 0x1700020B RID: 523
            // (get) Token: 0x060004A5 RID: 1189 RVA: 0x00004CCA File Offset: 0x00002ECA
            // (set) Token: 0x060004A6 RID: 1190 RVA: 0x00004CD2 File Offset: 0x00002ED2
            public string sign { get; set; }

            // Token: 0x060004A7 RID: 1191 RVA: 0x0000286D File Offset: 0x00000A6D
            public WxPayReqeust() {
                //Class15.cwcZ3SWztHroi();
                //base..ctor();
            }
        }

        // Token: 0x02000083 RID: 131
        public class WxPayResult {
            // Token: 0x1700020C RID: 524
            // (get) Token: 0x060004A8 RID: 1192 RVA: 0x00004CDB File Offset: 0x00002EDB
            // (set) Token: 0x060004A9 RID: 1193 RVA: 0x00004CE3 File Offset: 0x00002EE3
            public string return_code { get; set; }

            // Token: 0x1700020D RID: 525
            // (get) Token: 0x060004AA RID: 1194 RVA: 0x00004CEC File Offset: 0x00002EEC
            // (set) Token: 0x060004AB RID: 1195 RVA: 0x00004CF4 File Offset: 0x00002EF4
            public string result_code { get; set; }

            // Token: 0x1700020E RID: 526
            // (get) Token: 0x060004AC RID: 1196 RVA: 0x00004CFD File Offset: 0x00002EFD
            // (set) Token: 0x060004AD RID: 1197 RVA: 0x00004D05 File Offset: 0x00002F05
            public string err_code { get; set; }

            // Token: 0x1700020F RID: 527
            // (get) Token: 0x060004AE RID: 1198 RVA: 0x00004D0E File Offset: 0x00002F0E
            // (set) Token: 0x060004AF RID: 1199 RVA: 0x00004D16 File Offset: 0x00002F16
            public string err_code_des { get; set; }

            // Token: 0x17000210 RID: 528
            // (get) Token: 0x060004B0 RID: 1200 RVA: 0x00004D1F File Offset: 0x00002F1F
            // (set) Token: 0x060004B1 RID: 1201 RVA: 0x00004D27 File Offset: 0x00002F27
            public string transaction_id { get; set; }

            // Token: 0x17000211 RID: 529
            // (get) Token: 0x060004B2 RID: 1202 RVA: 0x00004D30 File Offset: 0x00002F30
            // (set) Token: 0x060004B3 RID: 1203 RVA: 0x00004D38 File Offset: 0x00002F38
            public string out_trade_no { get; set; }

            // Token: 0x17000212 RID: 530
            // (get) Token: 0x060004B4 RID: 1204 RVA: 0x00004D41 File Offset: 0x00002F41
            // (set) Token: 0x060004B5 RID: 1205 RVA: 0x00004D49 File Offset: 0x00002F49
            public string openid { get; set; }

            // Token: 0x17000213 RID: 531
            // (get) Token: 0x060004B6 RID: 1206 RVA: 0x00004D52 File Offset: 0x00002F52
            // (set) Token: 0x060004B7 RID: 1207 RVA: 0x00004D5A File Offset: 0x00002F5A
            public string time_end { get; set; }

            // Token: 0x17000214 RID: 532
            // (get) Token: 0x060004B8 RID: 1208 RVA: 0x00004D63 File Offset: 0x00002F63
            // (set) Token: 0x060004B9 RID: 1209 RVA: 0x00004D6B File Offset: 0x00002F6B
            public int total_fee { get; set; }

            // Token: 0x17000215 RID: 533
            // (get) Token: 0x060004BA RID: 1210 RVA: 0x00004D74 File Offset: 0x00002F74
            // (set) Token: 0x060004BB RID: 1211 RVA: 0x00004D7C File Offset: 0x00002F7C
            public int cash_fee { get; set; }

            // Token: 0x17000216 RID: 534
            // (get) Token: 0x060004BC RID: 1212 RVA: 0x00004D85 File Offset: 0x00002F85
            // (set) Token: 0x060004BD RID: 1213 RVA: 0x00004D8D File Offset: 0x00002F8D
            public string trade_state { get; set; }

            // Token: 0x17000217 RID: 535
            // (get) Token: 0x060004BE RID: 1214 RVA: 0x00004D96 File Offset: 0x00002F96
            // (set) Token: 0x060004BF RID: 1215 RVA: 0x00004D9E File Offset: 0x00002F9E
            public string trade_state_desc { get; set; }

            // Token: 0x17000218 RID: 536
            // (get) Token: 0x060004C0 RID: 1216 RVA: 0x00004DA7 File Offset: 0x00002FA7
            public int coupon_fee {
                get {
                    return total_fee - cash_fee;
                }
            }

            // Token: 0x17000219 RID: 537
            // (get) Token: 0x060004C1 RID: 1217 RVA: 0x00004DB6 File Offset: 0x00002FB6
            public string trade_type { get; }

            // Token: 0x1700021A RID: 538
            // (get) Token: 0x060004C2 RID: 1218 RVA: 0x00004DBE File Offset: 0x00002FBE
            public string fee_type { get; }

            // Token: 0x1700021B RID: 539
            // (get) Token: 0x060004C3 RID: 1219 RVA: 0x00004DC6 File Offset: 0x00002FC6
            public string cash_fee_type {
                get {
                    return fee_type;
                }
            }

            // Token: 0x060004C4 RID: 1220 RVA: 0x00004DCE File Offset: 0x00002FCE
            public WxPayResult() {
                //Class15.cwcZ3SWztHroi();
                return_code = "SUCCESS";
                trade_type = "MICROPAY";
                fee_type = "CNY";
                // base..ctor();
            }
        }
    }
}
